import request from '@/utils/request'

// 查询模型管理列表
export function listBpmModel(query) {
  return request({
    url: '/flowable/bpmModel/list',
    method: 'get',
    params: query
  })
}

// 查询模型管理详细
export function getBpmModel(id) {
  return request({
    url: '/flowable/bpmModel/' + id,
    method: 'get'
  })
}

// 新增模型管理
export function addBpmModel(data) {
  return request({
    url: '/flowable/bpmModel',
    method: 'post',
    data: data
  })
}

// 修改模型管理
export function updateBpmModel(data) {
  return request({
    url: '/flowable/bpmModel',
    method: 'put',
    data: data
  })
}

// 删除模型管理
export function delBpmModel(id) {
  return request({
    url: '/flowable/bpmModel/' + id,
    method: 'delete'
  })
}

export function deploy(data) {
  return request({
    url: '/flowable/bpmModel/deploy',
    method: 'get',
    params: data
  })
}
